package com.schoolcloud.share.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;

/**
 * 视频主表
 *
 * @TableName videos
 */
@TableName(value = "videos")
@Data
public class Videos implements Serializable {
    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 视频ID
     */
    @TableId(value = "video_id", type = IdType.AUTO)
    private Integer videoId;
    /**
     * 上传者ID
     */
    @TableField(value = "user_id")
    private Integer userId;
    /**
     * 视频标题
     */
    @TableField(value = "title")
    private String title;
    /**
     * 视频描述
     */
    @TableField(value = "description")
    private String description;
    /**
     * 视频文件URL
     */
    @TableField(value = "video_url")
    private String videoUrl;
    /**
     * 缩略图URL
     */
    @TableField(value = "thumbnail_url")
    private String thumbnailUrl;
    /**
     * 封面
     */
    @TableField(value = "cover")
    private String cover;
    /**
     * 时长(秒)
     */
    @TableField(value = "duration")
    private Integer duration;
    /**
     * 视频宽度
     */
    @TableField(value = "width")
    private Integer width;
    /**
     * 视频高度
     */
    @TableField(value = "height")
    private Integer height;
    /**
     * 播放数
     */
    @TableField(value = "view_count")
    private Integer viewCount;
    /**
     * 点赞数
     */
    @TableField(value = "like_count")
    private Integer likeCount;
    /**
     * 评论数
     */
    @TableField(value = "comment_count")
    private Integer commentCount;
    /**
     * 可见性
     */
    @TableField(value = "privacy")
    private Integer privacy;
    /**
     * 状态
     */
    @TableField(value = "status")
    private Integer status;
    /**
     * 是否原创
     */
    @TableField(value = "is_original")
    private Integer isOriginal;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;
}
